<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>

<?php
require_once './../class/DailyReport.inc';

$search_dt = $_POST ['search_dt'];
$mem_id = $_POST ['mem_id'];
$attend_tp = $_POST ['attend_tp'];
$subs_amt = $_POST ['subs_amt'];
$subs_firm = $_POST ['subs_firm'];
$etc_amt_1 = $_POST ['etc_amt_1'];
$etc_amt_2 = $_POST ['etc_amt_2'];
$close_deduct = $_POST ['close_deduct'];
$note = $_POST ['note'];

$subs_amt = str_replace ( ',', '', $subs_amt );
$etc_amt_1 = str_replace ( ',', '', $etc_amt_1 );
$etc_amt_2 = str_replace ( ',', '', $etc_amt_2 );
$close_deduct = str_replace ( ',', '', $close_deduct );

$dReport = new DailyReport ();
$dReport->createDailyReport ( $search_dt, $mem_id, $attend_tp, $delivery_cnt, $subs_amt, $subs_firm, $etc_amt_1, $etc_amt_2, $close_deduct, $note );

echo "<script type='text/javascript'>";
echo "alert('" . $mem_id . "/" . $mem_nm . "님의 일일결산 정보가 저장 되었습니다.');";
echo "history.back();";
echo "</script>";
?>
</body>
</html>